<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
	$last_url = $this->session->userdata('current_page');
	$current_url = $this->uri->uri_string();
	if($last_url != $current_url){
		if(empty($last_url)){
			$this->session->set_userdata('last_page', $current_url);
		}else{
			$this->session->set_userdata('last_page', $last_url);
		}
		$this->session->set_userdata('current_page', $current_url);
	}